#ifndef PLOTWINDOW_H
#define PLOTWINDOW_H

#include "ui_PlotWindow.h"
#include "MyPlot.h"
#include "dogz/Star.h"
#include "dogz/StarManager.h"
#include "dogz/VisualObservation.h"
#include <QColor>
#include <QDialog>
#include <QGridLayout>
#include <QPen>
#include <QVector>

class PlotWindow : public QDialog
{
    Q_OBJECT

public:
    PlotWindow(Dogz::StarManager* mgr, QWidget *parent = 0);
    ~PlotWindow();
    void setData(QVector<Dogz::VisualObservation> obsVector);

private:
    Ui::PlotWindowClass ui;
    MyPlot * qwtplt;
    QGridLayout * grid;
    QVector<Dogz::VisualObservation> obsToPlot;
    QPen pen;
    QPen gridPen;
    QColor penColor;

    Dogz::StarManager* m_mgr;

private slots:
    void on_fazowyCheck_clicked();
    void on_plotButton_clicked();

    void updateElements(Dogz::Star star);

};

#endif // PLOTWINDOW_H
